* {
    margin: 0;
    padding: 0;
    user-select: none;
    list-style: none;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html,body {
    display: grid;
    height: 100%;
    place-items: center;
    text-align: center;
}

.wrapper{
    height: 60px;
    width: 55vw;
    background: #fff;
    line-height: 60px;
    box-shadow: 0 5px 10px rgba(0,0,0,.25);
    border-radius: 50px; 
}

.wrapper nav {
    position: relative;
    display: flex;
       
}

.wrapper nav label {
    flex: 1;
    width: 100%;
    z-index: 1;
    position: relative;
    cursor: pointer;
}

.wrapper nav label a{
    position: relative;
    z-index: -1;
    color : #1d1f20;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;

}
.wrapper nav label a i {
    font-size: 25px;
    margin: 0 7px;
}

.wrapper nav .tab{
    position: absolute;
    height: 100%;
    width: 20%;
    left: 0;
    bottom: 0;
    background: linear-gradient(45deg,#05abe0 0%,#8200f4 100%);
    border-radius: 50px;
    transition: 0.6s cubic-bezier(0.68,-0.55,0.265,1.55);
}

.wrapper nav #home:checked ~ label.home a,
.wrapper nav #inbox:checked ~ label.inbox a,
.wrapper nav #contact:checked ~ label.contact a ,
.wrapper nav #heart:checked ~ label.heart a,
.wrapper nav #about:checked ~ label.about a  {
    color: #fff;
}

.wrapper nav #inbox:checked ~ .tab {
    left: 20%;
}

.wrapper nav #contact:checked ~ .tab {
    left: 40%;
}

.wrapper nav #heart:checked ~ .tab {
    left: 60%;
}

.wrapper nav #about:checked ~ .tab {
    left: 80%;
}






.wrapper nav input {
    display: none;
}